<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加企业</title>
<script type="text/javascript">
var comName=$("#comName").val();
function checkName(){
	if(comName==null){
		$("#nameError").val("名称不能为空！");
		}else{
	$.ajax({
          type:'post',
          url:'com_checkName',
          data:{comName:comName},
          dataType:'json',
          success:function(data){
               $("#nameError").val(data[0].msg);
              }
		});
		}
}
function checkEmail(){}
</script>
<style type="text/css">
.tr{
width: 450px;
height: 40px;
}
.td1{
width: 100px;
height: 40px;
float: left;
}
.td2{
width: 200px;
height: 40px;
float: left;
}
.td3{
width: 140px;
height: 40px;
float: left;
}
.span{
color: red;
}

#province{
width: 80px;
height: 25px;
}
#citys{
width: 80px;
height: 25px;
}
#countys{
width: 80px;
height: 25px;
}
#streets{
width: 80px;
height: 25px;
}
div{
font-family: '微软雅黑';
font-size: 15px;
}
</style>
</head>
<body>
<div style="width:500px;height: 120px;margin: 0px auto;background-color: #f0f8ff">
<form action="picstyle_savePicStyle" method="post" id="save">
<s:hidden name="picStyle.styleId" value="%{picStyle.styleId}"></s:hidden>
<s:hidden name="picStyle.created" value="%{picStyle.created}"></s:hidden>
<div class="tr">
<div class="td1" align="right"><span>尺寸大小：</span></div>
<div class="td2"><s:textfield name="picStyle.styleValue" required="true" theme="simple" style="width:100%;height:80%"  id="comName"  placeholder="请输入尺寸大小" value="%{picStyle.styleValue}"></s:textfield></div>
<div class="td3"><span class="span" id="nameError">*</span></div>
</div>
<div class="tr">
<div class="td1" align="right"><span>价格：</span></div>
<div class="td2"><s:textfield name="picStyle.stylePrice" required="true" theme="simple" style="width:100%;height:80%" id="comEmail"  placeholder="请输入邮箱" value="%{picStyle.stylePrice}"></s:textfield></div>
<div class="td3"><span class="span">*</span></div>
</div>
</form>
</div>

</body>
</html>